What is @babel/plugin-proposal-unicode-property-regex?
The @babel/plugin-proposal-unicode-property-regex package allows Babel to compile regular expressions using Unicode property escapes (`\p{...}` and `\P{...}`) to ES5. This is particularly useful for writing more readable and maintainable regular expressions that match characters based on their Unicode properties, such as letters, numbers, script, or emoji.
Unicode property escapes in regular expressions
This feature enables the use of Unicode property escapes in regular expressions to match characters based on their Unicode properties. In this example, the regular expression matches one or more characters that are part of the Hiragana script.
/\p{Script=Hiragana}+/u.source